package com.tanhua.manage.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tanhua.manage.mapper.LogMapper;
import com.tanhua.manage.pojo.Log;
import com.tanhua.manage.pojo.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LogService {
    @Autowired
    private LogMapper logMapper;
    public void save(Log log) {
        logMapper.insert(log);
    }


    public Integer queryCount(QueryWrapper<Log> queryWrapper) {
        return this.logMapper.selectCount(queryWrapper);
    }

    public List<Log> queryLog(QueryWrapper<Log> queryWrapper) {
        return this.logMapper.selectList(queryWrapper);
    }

}
